﻿package chapter_04_Homework;

public class Work_07_Test {
	public static void main(String[] args) {
		Work_07_Dog dog=new Work_07_Dog("欧欧","雪纳瑞");
		Work_07_Penguin pgn=new Work_07_Penguin("楠楠","Q妹");
		Work_07_Cat cat=new Work_07_Cat("Tomcat","黄色");
		dog.setHealth(90);
		pgn.setHealth(80);
		cat.setHealth(70);
		Work_07_Master master=new Work_07_Master("王先生",100);
		master.feed(cat);
		master.feed(pgn);
		master.feed(dog);
	}
}

